// src/index.js
import './styles/index.less';
import ThemeDirective from './directives/theme';
import waves from "./styles/waves";
const install = (Vue) => {
    Vue.directive('theme',  ThemeDirective);
    Vue.directive('waves', waves)

    if (window.Vue) {
        window.waves = waves
        Vue.use(install); // eslint-disable-line
    }
    waves.install = install
}

import myButton from "./components/button/elButtonPlus.vue";

const components = {
    myButton,
};

function installComponent(Vue) {
    const keys = Object.keys(components);
    keys.forEach((name) => {
        const component = components[name];
        Vue.component(component.name || name, component);
    });
}

export default { installComponent,install,...components }